package com.tm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @PROJECT_NAME: tm-wm-syb
 * @DESCRIPTION:
 * @USER: DELL
 * @DATE: 2023/4/4 13:36
 */
@Data
@TableName("category")
public class CategoryEntity implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long  id;

    private Integer  type;

    private String  name;

    private Integer sort;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date createTime;

    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date  updateTime;

    @TableField("create_user")
    private Long  createUser;

    @TableField("update_user")
    private Long  updateUser;
    @TableField(exist = false)
    private Long count;


}
